package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Address;
import org.darkforest.model.DAddress;

import java.util.List;

@DBMapper
public interface DAddressMapper {

    List<Address> selectAddress(int shopId);

    int deleteByPrimaryKey(Integer addressId);

    int insert(DAddress record);

    int insertSelective(DAddress record);

    DAddress selectByPrimaryKey(Integer addressId);

    DAddress selectByStoreId(Integer storeId);

    int updateByPrimaryKeySelective(DAddress record);

    int updateByPrimaryKey(DAddress record);
}